myprocess:myprocess2.o main.o
	gcc $^ -o $@
myprocess2.o:myprocess2.c
	gcc -c myprocess2.c -o myprocess2.o
main.o:main.c
	gcc -c main.c -o main.o
.PHONY:clean
clean:
	rm -rf myprocess *.o
# OBJ=$(SRC:.c=.o)
# BIN=processbar
# $(BIN):$(OBJ)
# gcc -o $@ $^
# %.o:%.c
# gcc -c $<
# .PHONY:
# clean:
# rm -f $(OBJ) $(BIN)




#myprocess:myprocess.c
#	gcc myprocess.c -o myprocess
#.PHONY:clean
#clean:
#	rm -rf myprocess SRC=$(wildcard *.c)
